import React, {Component} from 'react';
import Login from './Login';
import Index from './main/Index';
import Reset from './Reset/Reset.js';
import Resgister from './register/Register';
import Welcome from './main/Welcome';
import Workbench from './main/Workbench';
import User from './user/User';
import Artical from './artical/Artical';
import Download from './download/Download';
import UploadF from './upload/UploadF';
import Markdown from './markdown/Markdown';
import Course from './course/Course';
import SignUp from './signup/SignUp';
import StudentPage from './student/StudentPage';


import { Router, Route, Switch } from "react-router-dom";
import history from './history';

class router extends Component{
    constructor(props){
        super(props);
        this.state={

        }
    };
    componentDidMount(){

    }
    render(){
        return(
        <Router history={history}>
          <div>
            <Switch>
              <Route path="/" exact component={Login}/>
              <Route path="/Reset" exact component={Reset}/>
              <Route path="/Login" exact component={Index}/>
              <Route path="/Callback" exact component={Index}/>
              <Route path="/Icons" exact component={Index}/>
              <Route path="/Register" exact component={Resgister}/>
              <Route path="/Welcome" exact component={Welcome}></Route>
              <Route path="/Workbench" exact component={Workbench}></Route>
              <Route path="/User" exact component={User}></Route>
              <Route path="/Artical" exact component={Artical}></Route>
              <Route path="/Download" exact component={Download}></Route>
              <Route path="/UploadF" exact component={UploadF}></Route>
              <Route path="/Markdown" exact component={Markdown}></Route>
              <Route path="/Course" exact component={Course}></Route>
              <Route path="/SignUp" exact component={SignUp}></Route>
              <Route path="/StudentPage" exact component={StudentPage}></Route>
            </Switch>
          </div>
        </Router>
        )
    };
}
export default router;
